DAG shortest paths

join shbcf.ru